import doctor from '@/router/doctor/doctor'
import request from '@/utils/request'

// 分页查询健康管理师数据
export const pageProfessionalAll = (pageNum , pageSize , professional) => {
    return request({
        url: '/admin/doctor/professionalController/pageProfessionalAll/' + pageNum + "/" + pageSize,
        method: 'get',
        params: professional
    })
}

// 添加职称
export const addProfessional = professional => {
    return request({
      url: `/admin/doctor/professionalController/addProfessional`,
      method: 'post',
      data: professional,
    })
}

// 修改职称
export const updateProfessional = professional => {
    return request({
      url: `/admin/doctor/professionalController/updateProfessional`,
      method: 'put',
      data: professional,
    })
}

// 根据id删除职称
export const deleteProfessional = id => {
    return request({
      url: `/admin/doctor/professionalController/deleteProfessional/${id}`,
      method: 'get',
    })
  }